package com.dufang.string01;

import java.util.Scanner;

public class DemoString01 {
    public static void main(String[] args) {
        //1.创建Scanner对象
        Scanner sc=new Scanner(System.in);
        String sdata=sc.next();
        //2.创建StringBuilder对象
        StringBuilder sb=new StringBuilder(sdata);
        //3.翻转
        sb.reverse();
        //4.将StringBuilder转成String
        String s=sb.toString();
        if(sdata.equals(s)){
            System.out.println("是回文内容");
        }else{
            System.out.println("不是回文内容");
        }
    }
}
